/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.webapp.service;

import java.util.List;
import java.util.Set;
import vn.webapp.dto.DataPage;
import vn.webapp.model.Courses;
import vn.webapp.model.Coursing;

public interface CoursesService {

    public DataPage<Courses> list();
    
    public Courses viewDetail(String id);
    
    public Courses checkExistsCode(String code, int id);
    
    public int updateTheCourse(String code, String name, int id, int credits);
    
    public int removeCourse(int id);
    
    /**
     *
     * @param code
     * @param name
     * @param credits
     * @return
     */
    public int saveACourse(String code, String name, int credits);
    
    public DataPage<Courses> filter(int page, int pageSize);
    
    public Set<Courses> getById(int courseId);
}
